package operation;

import book.Book;
import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: WHY
 * Date: 2022-06-24
 * Time: 18:59
 */
public class ShowOperation implements IOperation{
    @Override
    public void work(BookList booklist) {
        System.out.println("显示图书");

        int currentSize= booklist.getUsedSize();
        for (int i=0;i<currentSize;i++) {

                System.out.println(booklist.getBook(i));

            }
        }
    }

